package net.viralpatel.spring3.controller;

 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
 
@Controller
@RequestMapping("/hello.html")
public class SampleMvc {
 
  
@RequestMapping(params="helloWorld",method=RequestMethod.GET)
    public ModelAndView helloWorld() {
 System.out.println("hie");
        String message = "Hello World, Spring 3.0!";
        System.out.println("hi");
        return new ModelAndView("Mymvc", "message", message);
    }
}